package com.biz;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.dao.MenuDAO;
import com.po.Menu;

@Service("MenuBiz")
@Transactional
public class MenuBiz implements IMenuBiz {

	@Resource(name = "MenuDAO")
	private MenuDAO mdao;

	public MenuDAO getMdao() {
		return mdao;
	}

	public void setMdao(MenuDAO mdao) {
		this.mdao = mdao;
	}

	@Override
	public List<Menu> findAll() {
		return mdao.findAll();
	}

}
